<!DOCTYPE html>
<html class="ui-page-login">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <script src="__PUBLIC__/home/plugins/layer/layer.js"></script>
    <script src="__PUBLIC__/mui/js/mui.min.js"></script>
    <script src="__PUBLIC__/js/angular.js"></script>
    <script src="__PUBLIC__/common.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/mui/css/mui.css" />
    <style>

        #member-login{
            display: none;
        }
        .area {
            margin: 20px auto 0px auto;
        }

        .mui-input-group {
            margin-top: 10px;
        }

        .mui-input-group:first-child {
            margin-top: 20px;
        }

        .mui-input-group label {
            width: 30%;
            font-size: 15px;
            text-align: center;

        }

        .mui-input-row label~input,
        .mui-input-row label~select,
        .mui-input-row label~textarea {
            width: 70%;
        }

        .mui-checkbox input[type=checkbox],
        .mui-radio input[type=radio] {
            top: 6px;
        }

        .mui-content-padded {
            margin-top: 25px;
        }

        .mui-btn {
            padding: 10px;
        }

        .link-area {
            display: block;
            margin-top: 25px;
            text-align: center;
        }

        .spliter {
            color: #bbb;
            padding: 0px 8px;
        }

        .oauth-area {
            position: absolute;
            bottom: 20px;
            left: 0px;
            text-align: center;
            width: 100%;
            padding: 0px;
            margin: 0px;
        }

        .oauth-area .oauth-btn {
            display: inline-block;
            width: 50px;
            height: 50px;
            background-size: 30px 30px;
            background-position: center center;
            background-repeat: no-repeat;
            margin: 0px 20px;
            /*-webkit-filter: grayscale(100%); */
            border: solid 1px #ddd;
            border-radius: 25px;
        }

        .oauth-area .oauth-btn:active {
            border: solid 1px #aaa;
        }

        .oauth-area .oauth-btn.disabled {
            background-color: #ddd;
        }

        .login-active {
            background: #f3363a;
        }
        .content{
            width: 70%;
            float: right;
            line-height: 40px;
            height: 40px;
            text-indent: 2em;
            font-size: 16px;

        }
        .go-item{
            position: absolute;
            bottom: 0;
            left: 0 ;
            right: 0;
            padding: 0;
            margin: 0;
            background: white;
            height: 60px;
            text-align: center;

        }
        #apikey{
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 100%;
            padding: 0;
            background: url("__PUBLIC__/images/cert_bg_shan@3x.png")no-repeat center;
            background-size: 100% 100%;
        }
        .code{
            width: 100%;
            height: 100%;
            background: url("__PUBLIC__/images/cert_icon_box@3x.png")no-repeat center;
            background-size: 85% auto;

        }
        .aside1{
            width: 100%;
            height: 47%;
            background: url("__PUBLIC__/images/cert_icon_head@3x.png") no-repeat;
            background-size: auto 15%;
            background-position: left 20% bottom 27%;
            position: relative;
        }
        .aside2{
            width: 100%;
            height: 53%;
        }
        .aside1-text{
            width: 100%;
            height: 40%;
            position: absolute;
            bottom: 0;
           padding-left: 36%

        }
        .aside1-text p{
            color: #ffffff;
            margin: 0;
            font-size: 4vw;
            line-height: 6vw;
            font-family: "Microsoft YaHei UI";
        }
        .aside2{

            font-family: "Microsoft YaHei UI";
        }
        .aside2 .aside2-1{width: 100%;height: 25%;padding: 5% 15%;}
        .aside2 .aside2-1 p{  text-indent: 2em;font-size: 3.5vw;color: black  }
        .aside2 .aside2-2{width: 100%;height: 25%;
            background: url("__PUBLIC__/images/cert_icon_certno@3x.png") no-repeat;
            background-size: 70% auto;
            background-position: center;
        }
        .aside2-2 p{
            color: #fc6d0d;
            font-size: 5vw;
            text-align: center;
            line-height: 25vw;
            margin: 0;

        }
        .aside2 .aside2-3{width: 100%;height: 30%;position: relative;
        }
        .aside2-3 p{font-size: 3.5vw;color: black;font-family: "Microsoft YaHei UI";margin: 0;padding-left: 25%; }
        .aside2-3 p:nth-child(1){position: absolute;bottom: 5vw;}
        .aside2-3 p:nth-child(2){position: absolute;bottom: 0;}
        @media screen and (min-width: 800px) {
            body {
                line-height: normal;
            }
            .aside1-text{
                width: 100%;
                height: 64%;
                position: absolute;
                bottom: 0;
                padding-left: 36%;
            }
            .aside1-text p{
                font-size: 2vw;
                line-height: 3vw;
            }
            .aside1{
                background-position: left 20% bottom 48%;
            }
            .aside2 .aside2-1 p{
                font-size: 2vw;
            }
            .aside2 .aside2-2{
                height: 60%;
            }
            .aside2-2 p{
                line-height: 16vw;
                font-size: 2vw;
            }
            .aside2-3 p{
                font-size: 1.8vw;
            }
            .aside2 .aside2-3{
                height: 14%;
            }
            .aside2-3 p:nth-child(1){
                bottom: 2vw;
            }

        }
    </style>
    <link rel="stylesheet" href="__PUBLIC__/js/nice-validator-0.10.11/dist/jquery.validator.css" />
    <script src="__PUBLIC__/js/nice-validator-0.10.11/dist/jquery.validator.js"></script>
    <script src="__PUBLIC__/js/nice-validator-0.10.11/dist/local/zh-CN.js"></script>
</head>
<body ng-app="myApp" ng-controller="Ctrl" ng-cloak>
<header class="mui-bar mui-bar-nav" style="background:#f3363a;" >
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white"></a>
    <h1 class="mui-title login-item" style="color: white">授权证书</h1>
</header>
<div class="mui-content" id="apikey">
<div class="code">
<div class="aside1">
   <div class="aside1-text">
       <p>代理商：{{message.name}}</p>
       <p ng-show="message.level==1">等&nbsp;&nbsp;&nbsp;级：一级</p>
       <p ng-show="message.level==2">等&nbsp;&nbsp;&nbsp;级：二级</p>
       <p ng-show="message.level==3">等&nbsp;&nbsp;&nbsp;级：三级</p>
       <p ng-show="message.level==4">等&nbsp;&nbsp;&nbsp;级：四级</p>
       <p ng-show="message.level==5">等&nbsp;&nbsp;&nbsp;级:五级</p>
       <p ng-show="message.level==6">等&nbsp;&nbsp;&nbsp;级:六级</p>
       <p>手机号：{{message.phone}}</p>
       <p>微信号：{{message.webchat}}</p>
   </div>
</div>
<div class="aside2">
    <div class="aside2-1">
        <p>兹证明，代理人：<b>{{message.name}}</b>，身份证号：<b>{{message.idcard}}</b>为
        本公司有效代理，本证明长期有效并具备法律效应。</p>
    </div>
    <div class="aside2-2">
        <p>NO.{{message.id}}</p>
    </div>
    <div class="aside2-3">

        <p>授权公司：河南心体荟健康管理有限公司</p>
        <p>授权时间：{{message.updatetime}}</p>
    </div>
</div>
</div>
</div>
<script>
    var app = getApp('myApp', []);
    app.controller('Ctrl', function ($scope, $http) {
        $http({
            method: 'POST',
            headers: {'Content-Type': 'application/x-www-form-urlencoded'},
            transformRequest: function (obj) {
                var str = [];
                for (var p in obj) {
                    str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
                }
                return str.join("&");
            },
            url: "/index.php/Home/Agen/credentials"
        }).then(function successCallback(response) {
            $scope.message=response.data.data;
            //console.log($scope.message)
        }, function errorCallback(response) {
            errorHandle(response);
        });
    });
</script>

</body>
</html>